//
//  EditPhotoViewCell.m
//  MrWrite
//
//  Created by lilg on 13-6-28.
//  Copyright (c) 2013年 Founder. All rights reserved.
//

#import "EditPhotoViewCell.h"
@interface EditPhotoViewCell ()

@property (nonatomic, retain)UIView *filterImageViewContainerView;
@property (nonatomic, retain)UIImageView *filterImageView;

@end

@implementation EditPhotoViewCell
@synthesize filterImageViewContainerView;
@synthesize filterImageView;

-(void)dealloc
{
  UIRelease(filterImageView);
  UIRelease(filterImageViewContainerView);
  [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
  self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  if (self) {
    filterImageView = [[UIImageView alloc] initWithFrame:CGRectMake(7.5, -7.5, 57, 72)];
    filterImageView.transform = CGAffineTransformMakeRotation(M_PI/2);
    
    filterImageViewContainerView = [[UIView alloc] initWithFrame:CGRectMake(0, 7, 57, 72)];
    [filterImageViewContainerView addSubview:filterImageView];
    [self.contentView addSubview:filterImageViewContainerView];  }
  return self;
}

-(void)setFilterImageViewImage:(UIImage *)image
{
  [filterImageView setImage:image];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
